package com.ouc.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Name: Material
 * @Description: 线的材料
 * @Author: Mr.Tong
 */
@Data
@Configuration
@PropertySource(value = "classpath:materialconfig.properties", encoding = "utf-8")
@ConfigurationProperties(prefix = "material")
public class Material {
    //自动注入配置文件中的材料类型信息
    private Map<Integer, String> type = new HashMap<>();
    //自动注入配置文件中的材料简称
    private Map<Integer, String> code = new HashMap<>();
}
